﻿@model GiaoTrinhEPU.Repositories.DataModels.UserModel

@{
    ViewBag.Title = "NGƯỜI DÙNG - EPU | Tạo Mới";
}

<div id="content-header">
    <h1>NGƯỜI DÙNG</h1>
   
</div>
<div id="breadcrumb">
    <a href="~/Manager/Home" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>Trang chủ</a>
    <a href="~/Manager/User" class="current">Người dùng</a>
    <a href="~/Manager/User/Create" class="current">Tạo Mới</a>
</div>


<!--content -->
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <span class="icon">
                        <i class="icon-align-justify"></i>
                    </span>
                    <h5>Nhập Thông Tin</h5>
                </div>
                <div class="widget-content nopadding">
                    @using (Html.BeginForm("Create", "User", FormMethod.Post, new { @class = "form-horizontal" }))
                    {

                        @Html.ValidationSummary(true)
                        <div class="control-group">
                            @Html.LabelFor(model => model.UserName, new { @class = "control-label" })
                            <div class="controls">
                                @Html.EditorFor(model => model.UserName)
                                @Html.ValidationMessageFor(model => model.UserName)
                            </div>
                        </div>
                        <div class="control-group">
                            @Html.LabelFor(model => model.Password, new { @class = "control-label" })
                            <div class="controls">
                                @Html.EditorFor(model => model.Password)
                                @Html.ValidationMessageFor(model => model.Password)
                            </div>
                        </div>
                        <div class="control-group">
                            @Html.LabelFor(model => model.ConfirmPassword, new { @class = "control-label" })
                            <div class="controls">
                                @Html.EditorFor(model => model.ConfirmPassword)
                                @Html.ValidationMessageFor(model => model.ConfirmPassword)
                            </div>
                        </div>
                       
                        <div class="control-group">
                            @Html.LabelFor(model => model.FullName, new { @class = "control-label" })
                            <div class="controls">
                                @Html.EditorFor(model => model.FullName)
                                @Html.ValidationMessageFor(model => model.FullName)

                            </div>
                        </div>
                        <div class="control-group">
                            @Html.LabelFor(model => model.Email, new { @class = "control-label" })
                            <div class="controls">
                                @Html.EditorFor(model => model.Email)
                                @Html.ValidationMessageFor(model => model.Email)

                            </div>
                        </div>
                        <div class="control-group">
                            @Html.LabelFor(model => model.Mobile, new { @class = "control-label" })
                            <div class="controls">
                                @Html.EditorFor(model => model.Mobile)
                                @Html.ValidationMessageFor(model => model.Mobile)

                            </div>
                        </div>
                        <div class="control-group">
                            @Html.LabelFor(model => model.Address, new { @class = "control-label" })
                            <div class="controls">
                                @Html.EditorFor(model => model.Address)
                                @Html.ValidationMessageFor(model => model.Address)

                            </div>
                        </div>
                        <div class="control-group">
                            @Html.LabelFor(model => model.Role, new { @class = "control-label" })
                            <div class="controls">

                                @Html.DropDownListFor(x => x.Role, new[] {
                                                        new SelectListItem() {Text = "Thống Kê", Value = "Report"},
                                                        new SelectListItem() {Text = "Quản Lý", Value = "Manager"},
                                                         new SelectListItem() {Text = "Quản Trị", Value = "Administrator"}
                                                        })
                                @Html.ValidationMessageFor(model => model.Role)

                            </div>
                        </div>
                        <div class="form-actions">
                            <button type="submit" class="btn btn-primary">Lưu</button>
                        </div>
                    }
                </div>


            </div>
        </div>



    </div>
    <div class="row-fluid">
        <div id="footer" class="span12" style="padding-top: 4%;">
            <div style="padding-top: 15%"></div>
            2013 &copy; Thư Viện EPU. Quản Lý Giáo Trình. Design By  <a href="~/Manager/Home">Group 16</a>
        </div>
    </div>
</div>
